let socketInstance = null;
async function socketInfo(io) {
  socketInstance = io.of("/bunessInfo");
  socketInstance.on("connection", async (socket) => {
    console.log("bunessInfo WebSocket连接成功");
  });
}

async function getSocketInstance() {
  return await socketInstance;
}

module.exports = {
  socketInfo,
  getSocketInstance,
};
